bool useGex;

int parseArgs(int argc, char* argv[])
{
	if(argc < 2)
	{
		printf("Invalid usage!\n\n");
		printf("Synposis:\n");
		printf("viper <program> [arguments]\n");
		return -1;
	}
	else if (argc >= 2)
	{
		if(strcmp("-h",&argv[1][0]) == 0 || strcmp("-help",&argv[1][0]) == 0 || strcmp("-?",&argv[1][0]) == 0)
		{
			printf("Usage:\n\n");
			printf("viper <program> [options]\n\n");
			printf("-gex			Load GEX4 program\n");
			return 0;
		}
		
		int i = 2;
		for(i; i < argc; i++)
		{
			if(strcmp("-gex",&argv[i][0]) == 0 || strcmp("--gex",&argv[i][0]) == 0)
			{
				useGex = true;
			}
			else
			{
				printf("'%s', no such option! Try -h for help\n",&argv[i][0]);
				return -1;
			}
		}
	}
	return 0;
}
